package com.crl.map.unit.view
{
	import com.crl.manager.RenderManager;
	import com.crl.map.unit.def.AbstractDef;
	import com.crl.map.unit.ele.AbstractEle;
	
	import flash.display.Shape;

	/**
	 * 地图不可交互对像(单纯显示容器s不做业务逻辑); 
	 * @author crl
	 * 
	 */	
	public class EleShape extends Shape implements IEleView
	{
		private var ele:AbstractEle;
		private var def:AbstractDef;
		
		public function EleShape()
		{
		}
		
		/**
		 * 
		 * @param ele
		 * @param def
		 * 
		 */		
		public function initalize(ele:AbstractEle,def:AbstractDef):void{
			
		}
		
		
		public function invalidate():void{
			RenderManager.ins.add(this);
		}
		
		public function render(event:Event=null):void{
			ele.render(this.graphics,def);
		}
	}
}